package unit4;

public class Ex4_7_TestSuper {
    public static void main(String args[]) {
        SubClass descendent = new SubClass("Test");
    }
}
class SuperClass {
    public SuperClass() {
        System.out.println("SuperClass constructor");
    }
    public SuperClass(String msg) {
        System.out.println("SuperClass constructor: " + msg);
    }
}
class SubClass extends SuperClass {
    public SubClass(String msg) {
        System.out.println("SubClass constructor: " + msg);
    }
}
